package com.chmingx.JavaBasic.lambda;

import java.time.LocalDate;
import java.util.function.Supplier;

public class LocalDateSupplier implements Supplier<LocalDate> {
    private LocalDate start = LocalDate.of(2021, 1, 1);
    private int n = -1;

    @Override
    public LocalDate get() {
        n++;
        return start.plusDays(n);
    }
}
